-- GENERATED SPELL FOR [Bladespire Battlemage] --


function spell0_19996(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19996', 30307, 1)
end

function spell1_19996(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(16102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19996', 11000, 1)
end

function Sorts_19996(pUnit, Event)
local choix_sorts_19996 = math.random(0, 1)
if choix_sorts_19996 == 0 then
pUnit:RegisterEvent('spell0_19996', 1, 1)
end
if choix_sorts_19996 == 1 then
pUnit:RegisterEvent('spell1_19996', 1, 1)
end
end

function mob19996_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19996', math.random(1500, 3000), 1)
end

function mob19996_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19996_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19996_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19996, 1, 'mob19996_Action')
RegisterUnitEvent(19996, 2, 'mob19996_Leave')
RegisterUnitEvent(19996, 3, 'mob19996_Kill')
RegisterUnitEvent(19996, 4, 'mob19996_Die')
